package me.sdevil507.systemAssist.systemLog.po;

import lombok.Data;
import lombok.EqualsAndHashCode;
import me.sdevil507.supports.jpa.BaseJpaSnowflakeIdEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * 访问模块日志
 *
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Entity
@Table(name = "system_log_access")
public class SystemAccessLogPo extends BaseJpaSnowflakeIdEntity {

    /**
     * 模块路径
     */
    @Column
    private String modulePath;

    /**
     * 用户id
     */
    @Column
    private Long userId;

    /**
     * 经常访问
     */
    @Column
    private Boolean oftenAccess;

    /**
     * 创建时间
     */
    @Column
    private Date createTime = new Date();
}
